﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Collections;

namespace App
{
    /// <summary>
    /// 在水平方向居中对齐的控件
    /// </summary>
    public class HorizonCentralAlignHelper
    {
        public HorizonCentralAlignHelper(Control container)
            :this(container, container.Controls)
        {
        }


        /// <summary>
        /// 
        /// </summary>
        /// <param name="container"></param>
        /// <param name="controls"></param>
        public HorizonCentralAlignHelper(Control container, IList controls)
        {
            this.container = container;
            container.SizeChanged += new EventHandler(container_SizeChanged);
        }

        Control container;

        void container_SizeChanged(object sender, EventArgs e)
        {
        }

        public void AlignControls()
        {
        }

    }
}
